﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Interviewer/MasterPageInterviewer.master" AutoEventWireup="true" CodeFile="EditTimeInterview.aspx.cs" Inherits="Interviewer_EditTimeInterview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div align="center" style="color: #800000">
        EDIT TIME INTERVIEW<br />
        <br />
        <asp:Label ID="Label1" runat="server"></asp:Label>
        <br />
        <br />
        <style type="text/css">
.Gridview
{
font-family:Verdana;
font-size:10pt;
font-weight:normal;
color:black;

}
</style>
        <asp:GridView ID="gvInterview" runat="server" AutoGenerateColumns="False" HeaderStyle-BackColor="#61A6F8"
            DataKeyNames="InterviewID,InterviewerID,VacancyID,ApplicantID" HeaderStyle-Font-Bold="true" 
            HeaderStyle-ForeColor="White" onrowcancelingedit="gvInterview_RowCancelingEdit" 
            onrowcommand="gvInterview_RowCommand" 
            onrowediting="gvInterview_RowEditing" onrowupdating="gvInterview_RowUpdating" 
            onselectedindexchanged="gvInterview_SelectedIndexChanged" 
            AllowPaging="True" onpageindexchanging="gvInterview_PageIndexChanging" 
            PageSize="5">
            <Columns>
            <asp:TemplateField>
<EditItemTemplate>
<asp:ImageButton ID="imgbtnUpdate" CommandName="Update" runat="server" ImageUrl="~/Images/update.jpg" ToolTip="Update" Height="20px" Width="20px" />
<asp:ImageButton ID="imgbtnCancel" runat="server" CommandName="Cancel" ImageUrl="~/Images/Cancel.jpg" ToolTip="Cancel" Height="20px" Width="20px" />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgbtnEdit" CommandName="Edit" runat="server" ImageUrl="~/Images/Edit.jpg" ToolTip="Edit" Height="20px" Width="20px" />
</ItemTemplate>
 </asp:TemplateField>

 <asp:TemplateField HeaderText="InterviewerID">
<EditItemTemplate>
<asp:Label ID="lbleditInterviewerID" runat="server" Text='<%#Eval("InterviewerID") %>'/>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblitemInterviewerID" runat="server" Text='<%#Eval("InterviewerID") %>'/>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtInterviewerID" runat="server"/>
<asp:RequiredFieldValidator ID="rfvInterviewerID" runat="server" ControlToValidate="txtInterviewerID" Text="*" ValidationGroup="validaiton"/>
</FooterTemplate> 
</asp:TemplateField>

<asp:TemplateField HeaderText="VacancyID">
 <EditItemTemplate>
 <asp:Label ID="lbleditVacancyID" runat="server" Text='<%#Eval("VacancyID") %>'/>
 </EditItemTemplate>
 <ItemTemplate>
 <asp:Label ID="lblitemVacancyID" runat="server" Text='<%#Eval("VacancyID") %>'/>
 </ItemTemplate>
 <FooterTemplate>
 <asp:TextBox ID="txtVacancyID" runat="server"/>
 <asp:RequiredFieldValidator ID="rfvVacancyID" runat="server" ControlToValidate="txtVacancyID" Text="*" ValidationGroup="validaiton"/>
 </FooterTemplate>
 </asp:TemplateField>

 <asp:TemplateField HeaderText="ApplicantID">
 <EditItemTemplate>
 <asp:Label ID="lbleditApplicantID" runat="server" Text='<%#Eval("ApplicantID") %>'/>
 </EditItemTemplate>
 <ItemTemplate>
 <asp:Label ID="lblitemApplicantID" runat="server" Text='<%#Eval("ApplicantID") %>'/>
 </ItemTemplate>
 <FooterTemplate>
 <asp:TextBox ID="txtApplicantID" runat="server"/>
 <asp:RequiredFieldValidator ID="rfvApplicantID" runat="server" ControlToValidate="txtApplicantID" Text="*" ValidationGroup="validaiton"/>
 </FooterTemplate>
 </asp:TemplateField>

 <asp:TemplateField HeaderText="Date">
 <EditItemTemplate>
 <asp:TextBox ID="txtDateInterview" runat="server" Text='<%#Eval("DateInterview") %>'/>
 </EditItemTemplate>
 <ItemTemplate>
 <asp:Label ID="lblDateInterview" runat="server" Text='<%#Eval("DateInterview") %>'/>
 </ItemTemplate>
 <FooterTemplate>
 <asp:TextBox ID="txtDateInterview" runat="server"/>
 <asp:RequiredFieldValidator ID="rfvDateInterview" runat="server" ControlToValidate="txtDateInterview" Text="*" ValidationGroup="validaiton"/>
 </FooterTemplate>
 </asp:TemplateField>

 <asp:TemplateField HeaderText="Time">
 <EditItemTemplate>
 <asp:TextBox ID="txtTimeDetails" runat="server" Text='<%#Eval("TimeDetails") %>'/>
 </EditItemTemplate>
 <ItemTemplate>
 <asp:Label ID="lblTimeDetails" runat="server" Text='<%#Eval("TimeDetails") %>'/>
 </ItemTemplate>
 <FooterTemplate>
 <asp:TextBox ID="txtTimeDetails" runat="server"/>
 <asp:RequiredFieldValidator ID="rfvTimeDetails" runat="server" ControlToValidate="txtTimeDetails" Text="*" ValidationGroup="validaiton"/>
 </FooterTemplate>
 </asp:TemplateField>


            </Columns>
        </asp:GridView>
        
    </div>
</asp:Content>

